﻿<UserControl x:Class="WpfKinectUserControls.KinectTiltControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:l="clr-namespace:WpfKinectUserControls"
             mc:Ignorable="d" 
             Loaded="uc_Loaded"
             x:Name="uc"
             d:DesignHeight="100" d:DesignWidth="50">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <l:SliderSlow SmallChange="1" Orientation="Vertical" Grid.Column="0" Grid.RowSpan="3" Minimum="{Binding ElementName=uc, Path=MinElevationAngle}" Maximum="{Binding ElementName=uc, Path=MaxElevationAngle}" ValueNDU="{Binding ElementName=uc, Path=ValNDU, Mode=OneWayToSource}" Value="{Binding ElementName=uc, Path=ElevationAngle}" />
        <Label HorizontalAlignment="Right" VerticalAlignment="Top" Content="{Binding ElementName=uc, Path=MaxElevationAngle, Mode=OneWay}" Grid.Column="1" Grid.Row="0" />
        <Label HorizontalAlignment="Right" VerticalAlignment="Center" Content="{Binding ElementName=uc, Path=ElevationAngle, Mode=OneWay}" Grid.Column="1" Grid.Row="1" />
        <Label HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="{Binding ElementName=uc, Path=MinElevationAngle, Mode=OneWay}" Grid.Column="1" Grid.Row="2" />
    </Grid>
</UserControl>
